package com.letoken.platform.pub.constant;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @Date 2018/10/26 14:43
 * @Created GG
 * @Description
 */
public class ConstantsValue {

    /* 数据库批量处理分片值 */
    public static final Integer MAX_DRO = 2000;

    /* 修改密码间隔 90天 */
    public static final Long MODIFY_PASSWORD = 180L;

    /*常规字符串参数长度限制*/
    public static final Integer LENGTH = 128;



    /* 常用常量值 */
    public static final Integer I_F2 = -2;
    public static final Integer I_F1 = -1;
    public static final Integer I_0 = 0;
    public static final Integer I_1 = 1;
    public static final Integer I_2 = 2;
    public static final Integer I_3 = 3;
    public static final Integer I_4 = 4;
    public static final Integer I_5 = 5;
    public static final Integer I_6 = 6;
    public static final Integer I_7 = 7;
    public static final Integer I_8 = 8;
    public static final Integer I_9 = 9;
    public static final Integer I_10 = 10;
    public static final Integer I_11 = 11;
    public static final Integer I_12 = 12;
    public static final Integer I_16 = 16;
    public static final Integer I_20 = 20;
    public static final Integer I_23 = 23;
    public static final Integer I_30 = 30;
    public static final Integer I_32 = 32;

    public static final Long L_F1 = -1L;
    public static final Long L_0 = 0L;
    public static final Long L_1 = 1L;
    public static final Long L_2 = 2L;
    public static final Long L_5 = 5L;

    public static final String  S_F1 = "-1";
    public static final String  S_0 = "0";
    public static final String  S_1 = "1";
    public static final String  S_2 = "2";
    public static final String  S_3 = "3";

    public static final String  D_1 = "01";
    public static final String  D_2 = "02";
    public static final String  D_3 = "03";
    public static final String  D_4 = "04";

    public static final Float  F_0 = 0.0f;
    public static final Float  F_1 = 1.0f;
    public static final Float  F_2 = 2.0f;
    public static final Float  F_3 = 3.0f;

    public static final Float  F_4 = 4.0f;
    public static final Float  F_5 = 5.0f;


    public static final Double  DB_0 = 0.0d;
    public static final Double  DB_1 = 1.0d;

    public static final Double  DB_2 = 2.0d;
    public static final Double  DB_3 = 3.0d;

    public static final Double  DB_4 = 4.0d;
    public static final Double  DB_5 = 5.0d;

    public static final Byte  B_F1 = -1;
    public static final Byte  B_0 = 0;
    public static final Byte  B_1 = 1;
    public static final Byte  B_2 = 2;
    public static final Byte  B_3 = 3;
    public static final Byte  B_4 = 4;

    public static final BigDecimal BD_O = new BigDecimal(0);
    public static final BigDecimal BD_1 = new BigDecimal(1);
    public static final BigDecimal BD_2 = new BigDecimal(2);
    public static final BigDecimal BD_3 = new BigDecimal(3);

    public static final Boolean  TRUE = true;
    public static final Boolean  FALSE = false;


    public static final Integer  I_NULL = null;
    public static final Long  L_NULL = null;
    public static final String  S_NULL = null;
    public static final String  S_EMPTY = "";
    public static final Object  O_NULL = null;

    public static List<Integer> IL = new ArrayList<>(Arrays.asList(I_F1,I_0,I_1,I_2));
    public static List<Byte> BL = new ArrayList<>(Arrays.asList(B_F1,B_0,B_1,B_2,B_3,B_4));
    public static List<String> SL = new ArrayList<>(Arrays.asList(S_F1,S_0,S_1,S_2));

    // 余额宝月收益率 5%
    public static BigDecimal BALANCE_INCOME_RATE = BigDecimal.valueOf(0.03);

    // 保证金数量
    public static BigDecimal MALL_BOND_USDT = BigDecimal.valueOf(100);


    public static Integer AUTO_CONFIRM_RECEIPT_DAYS = 7;


    public static BigDecimal CONSUME_THRESHOLD = BigDecimal.valueOf(0.2);

    public static Double CONSUME_LIMIT_LEVEL = 3.0d;
    public static BigDecimal CONSUME_LIMIT_CONTRIBUTING = BigDecimal.valueOf(0.2);

    public static BigDecimal CONSUME_LIMIT_EC_CONTRIBUTING = BigDecimal.valueOf(0.2);

    public static Integer CONSUME_DETERMINE_CYCLE = 7;


}
